<?php
namespace app\common\validate;
use think\Validate;

class ShopRoles extends Validate
{

    //定义验证规则
    protected $rule =   [
        'shop_id' => 'require',
        'name' => 'require|unique:shop_roles,shop_id'
    ];

}
